package com.acme;


public class Test {
	public static void main(String[] args) {
		int v1 = 3;
		byte v2 = (byte) v1;
		System.out.println(v2);
		v1 = 256;
		byte v3 = (byte) v1; // 256 - 128 = 128;   128 - 128 = 0
		System.out.println(v3); //2
		int v4 = (int) 's';
		System.out.println(v4);
		
		
		byte v5 = 115;
		if (v5 == (byte)'s') {
			System.out.println("Equals");
		}
		
		//TODO: What exactly will be printed?
		System.out.println((double)4);   // 4.0
		
		//TODO: What exactly will be printed?
		double d = 5;
		System.out.println(d + 1); // 6.0
		
		//boolean b = (boolean) v4; // boolean and integer
		
		//short v6 = "short"; // short and string
		
		float v7 = (float) 3.67;
		
		float v9 = 3;//TODO: Why there is no compilation error?
		
		int v8 = (int) v7; // 3
		
		//int array[] = new double[ "27"]; // the number of cells in the array can be a string
		
	}
}
